<?php

/**
 * @category   Ahs
 * @package    Ahs_Amf
 * @subpackage Auth
 * @author     Thibaut Cromphaut, Gaïtano Boeraeve, Matthias Mercy
 * @copyright  Copyright (c) 2011 memorygame
 */

class Ahs_Amf_Auth extends Zend_Amf_Auth_Abstract
{
/**
 * @todo Werkt niet?
 * @return Zend_Auth_Result
 */
    public function authenticate()
    {
        $adapter = new Ahs_Auth_Adapter_DbTable();
        $adapter->setIdentity($this->_username)
                ->setCredential($this->_password)
        ;
        $auth = Zend_Auth::getInstance();

        return $auth->authenticate($adapter);
    }

}


?>
